package com.xsystem.util;

import org.hibernate.transaction.JTATransactionFactory;

import com.atomikos.icatch.jta.UserTransactionImp;

public class AtomikosJTATransactionFactory extends JTATransactionFactory {
	UserTransactionImp userTransaction;

	@Override
	protected UserTransactionImp getUserTransaction() {
		if (this.userTransaction == null) {
			this.userTransaction = new UserTransactionImp();
		}

		return this.userTransaction;

	}

}
